﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace Stock.Client.Schedule
{
      public class ScheduleHelper
      {
            /// <summary>
            /// 计划任务入口
            /// </summary>
            public static void Start()
            {
                  ScheduleControler.Init().GetAwaiter().GetResult();

                  //ScheduleControler.PushJop<ThimingTask_Xueqiu>("StockInfo_Xueqiu", "StockInfo_Xueqiu_trigger", "0 0/1 9-19 ? * MON-FRI");
                  ScheduleControler.PushJop<ThimingTask_Tencent>("StockInfo_Tencent", "StockInfo_Tencent_trigger", "0/1 * 9-16 ? * MON-FRI");

                  ScheduleControler.Run().GetAwaiter().GetResult();
            }        
      }
}
